package com.yaohj.web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

@SpringBootApplication
@ComponentScans(value = { @ComponentScan(value = "com.yaohj.web.controller"),  @ComponentScan(value = "com.yaohj.web.config"), @ComponentScan(value = "com.yaohj.service"), @ComponentScan(value = "com.yaohj.web.component")} )
@MapperScan("com.yaohj.dao")
public class FruitWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(FruitWebApplication.class, args);
    }

}
